#ifndef SELECTTHREAD_H
#define SELECTTHREAD_H

#include <QObject>
#include <QQueue>

#include "database.h"

class SelectThread : public QObject
{
    Q_OBJECT
public:
    explicit SelectThread(QObject *parent = nullptr);
    ~SelectThread();

signals:
    void sendCurrentID_signal(int curID);

public slots:
    void startThread_slot();

    void exitThread_slot();

private slots:
    void onSelect_slot();

private:
    DataBase database;

private:
    int currentID = 0;

};

#endif // SELECTTHREAD_H
